title=${1//.md/}
file=${title}.md

dt=`date +"%Y-%m-%d %H:%M:%S"`

cp goon.md "${file}"

sed -i "" 's/^date:.*$/date: '"$dt/" $file
sed -i "" 's/^title:.*$/title: '"'$title'/" "$file"
